home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmSend
- BackColor = &H00C0C0C0&
- Caption = "EMAIL DEMO - Send Mail"
- ClientHeight = 3675
- ClientLeft = 1785
- ClientTop = 4425
- ClientWidth = 6570
- Height = 4080
- Left = 1725
- LinkTopic = "Form2"
- ScaleHeight = 3675
- ScaleWidth = 6570
- Top = 4080
- Width = 6690
- Begin CommandButton Command4
- Caption = "Send Message"
- Height = 315
- Left = 4560
- TabIndex = 4
- Top = 90
- Width = 1815
- End
- Begin TextBox tMessage
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 2295
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 3
- Top = 1200
- Width = 6495
- End
- Begin TextBox tTo
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Left = 960
- TabIndex = 1
- Top = 120
- Width = 3495
- End
- Begin TextBox tFrom
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Left = 960
- TabIndex = 0
- Top = 840
- Width = 3495
- End
- Begin TextBox tSubject
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Left = 960
- TabIndex = 2
- Top = 480
- Width = 5415
- End
- Begin Label l3
- BackStyle = 0 'Transparent
- Caption = "From:"
- Height = 255
- Index = 2
- Left = 120
- TabIndex = 7
- Top = 840
- Width = 855
- End
- Begin Label l2
- BackStyle = 0 'Transparent
- Caption = "Subject:"
- Height = 255
- Index = 1
- Left = 120
- TabIndex = 6
- Top = 480
- Width = 855
- End
- Begin Label l1
- BackStyle = 0 'Transparent
- Caption = "To:"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 5
- Top = 120
- Width = 855
- End
- Begin SMTP SMTP1
- BCc = ""
- Cc = ""
- Date = ""
- From = ""
- Height = 420
- Left = 4680
- MailServer = ""
- MessageText = ""
- RegHandle = SEND.FRX:0000
- ReplyTo = ""
- Subject = ""
- To = ""
- Top = 720
- Width = 420
- WinsockLoaded = 0 'False
- End
- Sub Command4_Click ()
- SMTP1.WinsockLoaded = True
- SMTP1.MailServer = frmMain.tMailServer
- SMTP1.Action = 4 'Reset Headers
- SMTP1.From = tFrom
- SMTP1.To = tTo
- SMTP1.Subject = tSubject
- SMTP1.MessageText = tMessage
- MousePointer = 11
- SMTP1.Action = 3' 'Send Message
- MousePointer = 0
- SMTP1.Action = 2' 'Disconnect From Server
- End Sub
- Sub Form_Resize ()
- If WindowState <> 1 Then
- If ScaleWidth - tSubject.Left > 120 Then
- tSubject.Width = ScaleWidth - tSubject.Left - 120
- End If
- tMessage.Width = ScaleWidth
- If ScaleHeight - tMessage.Top > 10 Then
- tMessage.Height = ScaleHeight - tMessage.Top
- End If
- End If
- End Sub
-